<?php
 $this->widget('zii.widgets.CBreadcrumbs', array(
 'homeLink' => '<b style="color:white">Модули</b>',
  'inactiveLinkTemplate' => '<li style="text-shadow:none"><span>{label}</span></li>',
  'activeLinkTemplate' => '<li style="text-shadow:none"><a style="color:white; text-decoration:none;" href="{url}">{label}</a></span></li>',
    'links'=>array(
        'Гостевая книга' => array('/admin/gbook/agbook'),
        'Редактирование записей гостевой книги'
    ),
    'htmlOptions' => array(
    'class' => 'breadcrumb',
    'style' => 'background: #F48B31;',
    ),
 )); 
 ?>

<h3 style="color: orange;">Редактирование записей гостевой книги</h3>

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'gbook-form',
	'enableAjaxValidation'=>false,
)); ?>



	<?php echo $form->errorSummary($model); ?>


		<?php echo $form->labelEx($model,'login'); ?>
		<?php echo $form->textField($model,'login',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'login'); ?>

        <br />

		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'email'); ?>

        <br />

		<?php echo $form->labelEx($model,'message'); ?>
		<?php echo $form->textArea($model,'message',array('class'=>'span6', 'rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'message'); ?>

        <br />
        
       	<?php echo $form->labelEx($model,'answer'); ?>
		<?php echo $form->textArea($model,'answer',array('class'=>'span6', 'rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'answer'); ?>

        <br />
        
        <?php echo $form->labelEx($model,'status'); ?>
		<?php //echo $form->textField($model,'email',array('size'=>50,'maxlength'=>50)); ?>
        <?php echo $form->dropDownList($model, 'status', array(1=>'Опубликовано', 0=>'Не опубликовано'), array('class'=>'span2'));   ?>
		<?php echo $form->error($model,'status'); ?>

        <br />

	
        <?php echo CHtml::submitButton('Сохранить'); ?> 
		<?php // echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>


<?php $this->endWidget(); ?>